package cn.dlc.com.controller;

import org.springframework.security.access.annotation.Secured;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author deng
 * @date 2021/6/23 11:44
 **/

@RestController
@RequestMapping("product")
public class ProductController {

    @GetMapping("/findAll")
    @Secured({"ROLE_PRODUCT","ROLE_USER"})
    public String findAll(){

        System.out.println("hello");
        System.out.println("hello");
        System.out.println("hello");

        return "product-list";
    }
}
